import { createApp } from 'vue'
import App from './App.vue'
import pinia from './store'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 解决 ElMessage 样式错误的问题
import 'element-plus/theme-chalk/index.css'
// 样式重置
import 'normalize.css'
import './assets/css/index.less'

// 国际化
import il8n from './locales'

// Element 图标
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

// 国际化
app.use(pinia)
app.use(router)
app.use(il8n)

app.mount('#app')
